package cn.ffcs.uec.staffRecords.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import cn.ffcs.uec.staffRecords.dao.AtiBaseFormDao;
import cn.ffcs.uec.staffRecords.model.AtiBaseForm;
import cn.ffcs.uom.common.dao.BaseDaoImpl;

@Repository("atiBaseFormDao")
@Transactional
public class AtiBaseFormDaoImpl extends BaseDaoImpl implements AtiBaseFormDao {

	@Override
	public AtiBaseForm getAtiBaseFormByBaseFormId(Long atiBaseFormId) {
		StringBuffer sBuffer = new StringBuffer("SELECT * FROM ATI_BASE_FORM T WHERE 1=1 AND T.ati_base_form_id = ? ");
		List<Object> params = new ArrayList<Object>();
		if(null != atiBaseFormId) {
			params.add(atiBaseFormId);
		}
		AtiBaseForm atiBaseForm = super.jdbcFindObject(sBuffer.toString(), params, AtiBaseForm.class);
		return atiBaseForm;
	}

}
